import React from 'react';
import { HashRouter, Switch, Route } from "react-router-dom"
import { Provider } from "react-redux"
import store from "./store"
import Home from "./page/Home/Home"
import Login from "./page/Login/Login"
import User from "./page/User/User"
import QuestionDetail from "./page/QuestionDetail/QuestionDetail"

function App() {
  return (
    <Provider store={store}>
      <HashRouter>
        <Switch>
          <Route path="/" exact component={Login} />
          <Route path="/home" exact component={Home} />
          <Route path="/user" exact component={User} />
          <Route path="/question/:id" exact component={QuestionDetail} />
        </Switch>
      </HashRouter>
    </Provider>
  );
}

export default App;
